package com.shujia.day06.package1;

public class Package1Access {
    protected void fun(){
        System.out.println("这是Package1Access中的fun protected");
    }

    public void fun1(){
        fun();
        System.out.println("这是Package1Access中的fun1 public ");
    }

    void fun2(){
        fun();
        System.out.println("这是Package1Access中的fun2 默认权限");
    }

    private void fun3(){
        fun();
        System.out.println("这是Package1Access中的fun3 private");
    }




    public static void main(String[] args) {
        new Package1Access().fun1();
        new Package1Access().fun();
        new Package1Access().fun2();
        new Package1Access().fun3();

    }
}
